local keshou_filter = fk.CreateSkill{
    name = "#new_ld__keshou_filter",
}

keshou_filter:addEffect("active",{
  can_use = Util.FalseFunc,
  target_filter = Util.FalseFunc,
  min_card_num = 2,
  max_card_num = 2,
  prompt = "#keshou-heg",
  card_filter = function(self, player, to_select, selected)
    return table.every(selected, function(id)
      return Fk:getCardById(to_select).color == Fk:getCardById(id).color
    end)
  end,
})

Fk:loadTranslationTable{
    ["#new_ld__keshou_filter"] = "恪守",
    ["#keshou-heg"] = "恪守：你可弃置两张颜色相同的牌，令此伤害值-1",
}

return keshou_filter